package model

import "time"

type BaseModel struct {
	Id        int64                  `xorm:"not null pk autoincr comment('主键')" json:"id"`
	Version   int                    `xorm:"comment('版本') version" json:"version"`
	CreatedAt time.Time              `xorm:"comment('创建日期') created 'created_at'" json:"created_at"`
	CreatedBy int64                  `xorm:"comment('创建者')" json:"created_by"`
	UpdatedAt time.Time              `xorm:"comment('修改日期') updated 'updated_at'" json:"updated_at"`
	UpdatedBy int64                  `xorm:"comment('修改者')" json:"updated_by"`
	DeletedAt time.Time              `xorm:"comment('删除日期') deleted 'deleted_at'" json:"deleted_at"`
	DeletedBy int64                  `xorm:"comment('删除者')" json:"deleted_by"`
	Ext       map[string]interface{} `xorm:"comment('扩展字段') json default(NULL)" json:"ext"`
}
